/*
 * @Description:js对象
 * @Author: rendc
 * @Date: 2021-06-29 10:45:07
 * @LastEditors: rendc
 * @LastEditTime: 2021-06-29 10:49:58
 */
// 对象声明
// 1. 字面量
var person1 = {
  name: "larry",
  age: 22
}
console.log(person1);
console.log(person1.age);
console.log(person1.name);
delete person1.name;
console.log(person1);
// 2. 构造函数
// var person2 = new Object();
// person2.name = "larry";
// person2.age = 12;
// console.log(person2);